package main

import (
	"parking-lot-go-dingding/config"
	"parking-lot-go-dingding/router"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()

	r.Static("/uploads", "./uploads")

	router.StartRoutes(r)

	// 读取配置文件
	dbSection := config.Cfg.Section("SYSTEM")

	port := dbSection.Key("PORT").String()

	r.Run(":" + port)
}
